package com.springboot.astra.service;

import com.springboot.astra.bean.RoleResource;

import java.util.List;

public interface RoleResourceService {
    List<RoleResource> getAllByRoleId(Integer id) throws Exception;
    //查询权限是否已经存在
    RoleResource doesRoleResourceExist(RoleResource roleResource)throws Exception;
    void insertRoleResource(RoleResource RoleResource) throws Exception;
    void updateOneById(RoleResource RoleResource) throws Exception;
    void deleteOneById(Integer id) throws Exception;
    void deleteAll(Integer roleId);
}
